import request from '@/utils/request'

// 查询专题列表
export function findSubjectList(data) {
  return request({
    url: '/marketing/subject/findList',
    method: 'post',
    data
  })
}

// 根据编号查询专题
export function findBySubjectId(subjectId) {
  return request({
    url: '/marketing/subject/findById/'+subjectId,
    method: 'get'
  })
}
// 查询所有推荐专题
export function findSubjectListAll() {
  return request({
    url: '/marketing/subject/findAll',
    method: 'get'
  })
}



// 新增岗位
export function addSubject(data) {
  return request({
    url: '/marketing/subject/add',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updateSubject(data) {
  return request({
    url: '/marketing/subject/update',
    method: 'put',
    data: data
  })
}
// 删除岗位
export function deleteSubject(subjectId) {
  return request({
    url: '/marketing/subject/delete/' + subjectId,
    method: 'delete'
  })
}
